#include<iostream>
using namespace std;
int exam4_7()
{
	int i, n;
	float x, max = 0;
	cin >> n;
	for (i = 1; i <= n; i++)
	{
		cin >> x;
		if (x > max)
		{
			max = x;
		}
	}
	cout << max << endl;
	return 0;
}